package com.spring.config.dao;

import com.spring.config.entity.UserJpa;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * ClassName: UserRepository
 * Description:
 * Date: 2017/5/16 16:08
 *
 * @author SAM SHO
 * @version V1.0
 */
@Repository
public interface UserRepository extends JpaRepository<UserJpa, String> {

    Page<UserJpa> findByName(String name, Pageable pageable);
}
